package com.example.plist.service;

import com.example.plist.db.pojo.GraphProject;
import com.example.plist.db.pojo.GraphProjectContext;
import com.example.plist.db.pojo.GraphProjectImage;
import com.example.plist.dto.ExportDTO;
import com.example.plist.dto.ProjectContextDTO;
import com.example.plist.vo.GraphProjectVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface GraphProjectService {
    GraphProjectVO findByProjectId(Integer id);

    Integer saveImage(ProjectContextDTO  image);
    Integer saveProjectContext(ProjectContextDTO context);

    Integer deleteContext(Integer id);

    String uploadFile(String fileName, String key, MultipartFile file);

    void exportZip(ExportDTO exportDTO, HttpServletResponse response);

    List<GraphProject> getList(GraphProject graphProject);
}
